@echo off
echo Quick Start WVP GB28181 Video Platform...

REM 设置基本的Java 8参数
set JAVA_OPTS=-Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m
set JAVA_OPTS=%JAVA_OPTS% -Djava.awt.headless=true
set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8
set JAVA_OPTS=%JAVA_OPTS% -Duser.timezone=Asia/Shanghai

echo 检查Java版本...
java -version

echo 使用Maven直接运行主类...
mvn exec:java -Dexec.mainClass="com.genersoft.iot.vmp.VManageBootstrap" -Dexec.args="--spring.profiles.active=test" -Dexec.jvmArgs="%JAVA_OPTS%"

pause
